import {} from 'react'
import style from './index.module.less'

function Main ({ title, sub, renderRight = () => <span /> }) {
  return (
    <div className={style.container}>
      <span>{title}</span>
      {sub && <span className={style.sub}>{sub}</span>}
      <span className={style.right}>
        {renderRight()}
      </span>
    </div>
  )
}

export default Main
